projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a84d8a
)
Inspector: hide the selector tab for non-widgets
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 9 Nov 2014 02:43:26 +0000
(21:43 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 9 Nov 2014 02:43:26 +0000
(21:43 -0500)
gtk/inspector/selector.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/selector.c
b/gtk/inspector/selector.c
index c984ff75d5f604be65a66fb8f8954670d2b62b6a..cfaed2feab0f46dcce7d7a595d9da6e3b07ff778 100644
(file)
--- a/
gtk/inspector/selector.c
+++ b/
gtk/inspector/selector.c
@@
-68,7
+68,10
@@
gtk_inspector_selector_set_object (GtkInspectorSelector *oh,
gtk_tree_store_clear (oh->priv->model);
if (!GTK_IS_WIDGET (object))
- return;
+ {
+ gtk_widget_hide (GTK_WIDGET (oh));
+ return;
+ }
widget = GTK_WIDGET (object);
@@
-89,6
+92,8
@@
gtk_inspector_selector_set_object (GtkInspectorSelector *oh,
gtk_tree_view_expand_all (oh->priv->tree);
gtk_tree_selection_select_iter (gtk_tree_view_get_selection (oh->priv->tree), &iter);
+
+ gtk_widget_show (GTK_WIDGET (oh));
}
// vim: set et sw=2 ts=2: